<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="__PUBLIC__/admin/boot/Js/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="__PUBLIC__/admin/boot/Css/thickbox.css" />
    <link rel="stylesheet" href="__PUBLIC__/admin/boot/jqui/jquery-ui.min.css" />

    <link rel="stylesheet" href="__PUBLIC__/admin/boot/Css/common.css" />

    <script src="__PUBLIC__/admin/boot/Js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/boot/Js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/boot/jqui/jquery-ui.min.js"></script>
    <script src="__PUBLIC__/admin/boot/jqui/jquery-ui-slide.min.js"></script>
    <script src="__PUBLIC__/admin/boot/jqui/jquery-ui-timepicker-addon.js"></script>
    <script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
    <script src="__PUBLIC__/admin/boot/Js/common.js"></script>
    <script charset="utf-8" src="__PUBLIC__/admin/boot/Js/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="__PUBLIC__/admin/boot/Js/kindeditor/lang/zh_CN.js"></script>
    <script type="text/javascript">
        var ajax_load_area_url = "{:URL('Admin/Helper/ajaxArea')}";
        var MODULE_NAME 	= "{$Think.const.MODULE_NAME}";
        var CONTROLLER_NAME = "{$Think.const.CONTROLLER_NAME}";

        function b_add() {
            window.location.href="__ROOT__/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=add";
        }

        function b_edit(id) {
            window.location.href="__ROOT__/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=edit&id=" + id + '&ref=' + encodeURIComponent(window.location.href);
        }

        function b_del(id) {
            if(confirm('危险:确实要删除吗?')) {
                window.location.href="__ROOT__/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=del&id=" + id ;
            }
        }


        $().ready(function(e) {
            $('.datepicker').datepicker({
                dateFormat: 'yy-m-d',
                showOn: 'both',
                buttonImage: '__PUBLIC__/admin/boot/Images/calendar.gif',
                buttonImageOnly: true});

            $('.datetimepicker').datetimepicker({
                dateFormat: 'yy-m-d',
                timeFormat: 'hh:mm'
            });

            $(".tag i").click(function(){
                $item = $(this).html();
                $val  = $('#tag').val();
                if($val.indexOf($item) >= 0 ) {
                    $val = $val.replace($item,"");
                    $('#tag').val($val);
                } else {
                    $('#tag').val($val + '' + $item);
                }
            });

            $("#btnoutput").click(function(){
                old = 	$("#search-form input[name=a]").val();
                $("#search-form input[name=a]").val('output');

                $("#search-form").attr("target","_blank").submit();

                $("#search-form input[name=a]").val(old);
                $("#search-form").attr("target","_self");
            });


        });
    </script>
</head>

<body>